package com.warrior.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 统一API响应结果封装
 */
public class Result implements Serializable{

	public int code;
	public String message;
	public Object data;

	private static final long serialVersionUID = -4477360898171362583L;
	
	public Result() {
	}

	public Result setCode(ResultCode resultCode) {
		this.code = resultCode.code();
		return this;
	}

	public int getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}

	public Result setMessage(String message) {
		this.message = message;
		return this;
	}

	public Object getData() {
		return data;
	}

	public Result setData(Object data) {
		this.data = data;
		return this;
	}

}
